package net.huashitong.Project.responseModel;

public class MessageModel {
    private String projectName;
    private String type;
    private String resDept;
    private String recipients;
    private String phone;
    private String text;
    private String createDate;
    private String createTime;

    public MessageModel() {
    }

    public MessageModel(String projectName, String type, String resDept, String recipients, String phone, String text, String createDate, String createTime) {
        this.projectName = projectName;
        this.type = type;
        this.resDept = resDept;
        this.recipients = recipients;
        this.phone = phone;
        this.text = text;
        this.createDate = createDate;
        this.createTime = createTime;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        switch (type) {
            case "0":
                this.type = "提醒节点确认消息";
                break;
            case "1":
                this.type = "提醒任务开始消息";
                break;
            case "2":
                this.type = "提醒任务过期消息";
                break;
            default:
                break;
        }
    }

    public String getResDept() {
        return resDept;
    }

    public void setResDept(String resDept) {
        this.resDept = resDept;
    }

    public String getRecipients() {
        return recipients;
    }

    public void setRecipients(String recipients) {
        this.recipients = recipients;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
